package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lxp
 * @since 2024-07-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Bed对象", description="")
public class Bed extends Model<Bed> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id_bed", type = IdType.AUTO)
    private Integer idBed;

    private Integer yqBed;

    private Integer buildingsBed;

    private Integer floorBed;

    private Integer roomsBed;

    private Integer numBed;

    private Integer isEnabled;

    private Integer availabilityBed;

    @TableField("is_deleted")
    @TableLogic// 逻辑删除
    private Boolean deleted;


    @Override
    protected Serializable pkVal() {
        return this.idBed;
    }

}
